<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .myClass{
            background: red;
        }

        .myClass2{
            background: skyblue;
        }
    </style>
</head>

<body>

    <h2 id="myID" class="myClass">大家好</h2>
    <span  class="myClass">我们是一个集体</span>
    <span>天气下午了</span>
    <script src="./dom.js"></script>

</body>

</html>